﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CompanySearch.Library;
using Microsoft.Owin.Hosting;

namespace CompanySearch.App.Console
{
    class Program
    {
        static void Main(string[] args)
        {
                var url = string.Format("{0}", ConfigurationManager.AppSettings["hostUrl"]);
                using (WebApp.Start<Startup>(url))
                {
                    System.Console.WriteLine("Started on: " + url);

                    System.Console.WriteLine("aws address: http://ec2-54-74-145-144.eu-west-1.compute.amazonaws.com/companysearch/");
                    System.Console.ReadKey();
                }
            
            
        }
    }
}
